package com.parenting.service.impl;

import com.parenting.entities.ActivityVoucherDO;
import com.parenting.mapper.ActivityVoucherMapper;
import com.parenting.response.wechat.WechatVoucherResponse;
import com.parenting.service.ActivityVoucherService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 活动与代金券关联表 服务实现类
 * </p>
 *
 * @author 烟台业达-王世玺
 * @since 2021-08-27
 */
@Service
public class ActivityVoucherServiceImpl extends ServiceImpl<ActivityVoucherMapper, ActivityVoucherDO> implements ActivityVoucherService {

    @Override
    public List<WechatVoucherResponse> getWechatVoucher(String activityId) {
        return baseMapper.getWechatVoucher(activityId);
    }
}
